#include<iostream>
using namespace std;

template <class K>
struct HashFunc
{
    size_t operator()(const K& key)
    {
        return size_t(key);
    }
};
template<>
struct HashFunc<string>
{
    size_t val=0;
    size_t operator()(const string& key)
    {
        for(auto ch:key)
        {
            val*=131;
            val+=ch;
        }
        return val;
    }
};
int main()
{
    cout<<"hello yangyi"<<endl;
    return 0;
}
